package com.aaa.day1108.demo03;

/**
 * @author ${崔灿}
 * @date 2022/11/07 17:13
 **/

public class Test {
    public static void main(String[] args) {
        new Thread(new Runnable() {

            @Override
            public void run() {
                System.out.println(Singleton1.getSingleton());
            }
        }).start();

        new Thread(new Runnable() {

            @Override
            public void run() {
                System.out.println(Singleton2.getInstance());
            }
        }).start();
    }

}
